package com.learning.js_work1;

import java.io.*;

import jakarta.servlet.http.*;
import jakarta.servlet.annotation.*;

@WebServlet(name = "helloServlet", value = "/Hello-Servlet")
public class MyHelloServlet extends HttpServlet {


    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
        response.sendRedirect("HelloServlet.jsp");
    }


    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        response.sendRedirect("HelloServlet.jsp");
    }


    public void destroy() {
    }


}